import qs from 'qs';
import ajax from '@/utils/ajax/index';
import config from '@/config';
import handleCatch from '@/api/handleCatch';

export default {
  rechargeByAccount(data) {
    return ajax.post(config.ajaxApi+'/backend/user/wallet/recharge/account', qs.stringify(data))
      .then((res) => res.data)
      .catch(handleCatch);
  }
};
